$(function () {
    console.log(sessionStorage.getItem("username"));
    $("#user").html(sessionStorage.getItem("username"));
    $("#exit").click(function () {
        let flag = confirm("确定要退出吗？");
        if (flag) {
            alert("退出成功！")
            window.location.href = "/exit";
        }
    });
    $("#home").click(function () {
        window.location.href = "/home";
    })
})
